import { Behaviour } from "./engine/Behaviour";
import { Serialized } from "./engine/Serialized";
import { TextRenderer } from "./engine/TextRenderer";

export class Score extends Behaviour {
    @Serialized('numberInput')
    point: number = 0;

    onUpdate() {
        var grade: string
        grade = this.point.toString()
        const gradeboard = this.engine.getGameObject('point')
        gradeboard.getBehaviour(TextRenderer).text = grade

    }
}